package com.zky.gulimall.product.feign;

import com.zky.common.to.es.SkuEsModel;
import com.zky.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Description es
 * @Author 张开源
 * @Date 2022/10/17 21:20
 * @Version 1.0
 **/
@FeignClient("gulimall-search")
public interface SearchFeignService {
    /**
     * 商品上架
     */
    @PostMapping("/search/save/product")
    R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);
}
